<?php
    /**
     * Created by PhpStorm.
     * User: walker
     * Date: 2019/1/15 0015
     * Time: 14:31
     */
    namespace  App\Providers;
    use Illuminate\Support\Facades\View;
    use Illuminate\Support\ServiceProvider;

    class ComposerServiceProvide extends ServiceProvider{
        public function boot()
        {
            View::composer(
                'admin.*','App\Http\ViewComposers\AdminComposer'
            );
        }

        public function register()
        {
            
        }
    }